package com.date.www;

public class Dog {
    //狗的名字
    private String name;
    //狗的年龄
    private int age;
    //狗的颜色
    private String colour;
    //狗的体重
    public static double weight;

    public Dog() {

    }


    public Dog(String name, int age, String colour) {
        this.name = name;
        this.age = age;
        this.colour = colour;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour;
    }

    public void barks() {
        System.out.println(this.name+"正在汪汪叫.......");
    }

    public void eat() {
        System.out.println(this.name+"正在吃饭.........");
    }


}
